.history{
  width: 240px;
  height: 100%;
  border-left: 1px solid rgba(172, 172, 172, 0.29);
  background: rgba(207, 207, 207, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  .historyContainer{
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    .title{
      color: #fff;
      font-size: 18px;
      line-height: 25px;
      margin-top: -4px;
      margin-bottom: 22px;
    }
    .historyItem{
      color: #fff;
      cursor: grab;
      transition: all 0.2s ease;
      border-radius: 4px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 4px;
      width: 196px;
      padding: 4px;
      margin-left: 6px;
      &:hover{
        opacity: 0.8;
        transform: scale(1.02);
      }
      
      &.selected {
        box-shadow:inset 0 0 0 2px #1890ff;
        background: rgba(54, 118, 255, 0.1);
        transform: scale(1.05);
      }
      
      &.dragging {
        cursor: grabbing;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        transition: none;
      }
      
      &.dragOver {
        &::before {
          content: '';
          position: absolute;
          left: -5px;
          width: 2px;
          height: 100%;
          background: #1890ff;
          border-radius: 2px;
          z-index: 1001;
          animation: dragOverPulse 0.6s ease-in-out infinite alternate;
        }
      }
      
      .img{
        width: 44px;
        height: 44px;
        aspect-ratio: 1;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        overflow: hidden;
        pointer-events: none; // 防止图片干扰拖拽事件
      }
      .imgName{
        line-height: 20px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex: 1;
      }
      .tool{
        display: flex;
        gap: 2px;
        .toolIcon{
          width: 28px;
          height: 28px;
          padding: 7px;
        }
      }
    }
    
    @keyframes dragOverPulse {
      from {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.8);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
      }
    }
  }
  .submitButton{
    width: 100%;
  }
}